"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[743],{9743:function(e,t,l){l.r(t),l.d(t,{default:function(){return eT}});var u=l(7437),n=l(3145),a=l(2265);let o="flex flex-auto justify-center",i=e=>"https://cdn.xquiz.co/images/".concat(e);var d=l(29),s=l.n(d);function r(e,t){return{background:(null==t?void 0:t.background)||((null==e?void 0:e.dark)?"#111827":"#f9fafb"),border:(null==t?void 0:t.border)||((null==e?void 0:e.dark)?"#1f2937":"#e5e7eb"),focus:(null==t?void 0:t.focus)||(null==e?void 0:e.color),focusBorder:(null==t?void 0:t.focusBorder)||(null==e?void 0:e.color),startColor:(null==t?void 0:t.startColor)||(null==e?void 0:e.color),endColor:(null==t?void 0:t.endColor)||(null==e?void 0:e.color),bgColor:(null==t?void 0:t.bgColor)||(null==e?void 0:e.color),text:(null==t?void 0:t.text)||void 0,textFocus:null==t?void 0:t.textFocus}}var c=l(761),D=l(5632);let x=e=>"gb-".concat(e);var f=l(2660);let v=()=>{let{setPageContent:e,nodes:t}=(0,D.d)(),{history:l,setHistory:u}=(0,c.k)();return(0,a.useCallback)(()=>{if(l&&l.length>1){let n=l.slice(0,l.length-1);u(n);let a=n[n.length-1].page,o=null==t?void 0:t.find(e=>e.id===a);o&&setTimeout(()=>{e(o)},100)}},[l,t,u,e])},m={true:"cursor-pointer hover:opacity-60",false:"hidden"},h=e=>"https://cdn.xquiz.co/images/".concat(e);var g=l(7562);let p=(e,t)=>e?e.replace(/{{(.*?)}}/g,(e,l)=>{let u=t.find(e=>e.title.toLowerCase()===l.trim().toLowerCase());return u?u.value:e}):"";function j(e){let{content:t}=e,{variables:l}=(0,c.k)(),u=p(t,l);return(0,g.ZP)(u)}let b={none:"flex flex-col flex-auto gap-2","fade-in":"flex flex-col flex-auto gap-2 fade-in"},C={left:"flex-auto justify-start whitespace-pre-line prose text-left",center:"flex-auto justify-center whitespace-pre-line prose text-center",right:"flex-auto justify-end whitespace-pre-line prose text-right"},E={"text-sm":"text-sm","text-base":"text-base","text-lg":"text-lg","text-xl":"text-xl","text-2xl":"text-2xl"},y="flex flex-auto justify-center gap-6 rounded-xl border shadow-lg shadow-gray-500/5 overflow-hidden";function w(e){let{content:t,children:l,selected:n,className:a}=e,{theme:o}=(0,D.d)(),i=r(o),d=null==t?void 0:t.data.colors,s=(null==t?void 0:t.data.animation)!=="none"?null==t?void 0:t.data.animation:void 0,c=s?"".concat(y," ").concat(s):y,x=a?"".concat(c," ").concat(a):c,f={backgroundColor:(null==d?void 0:d.background)||i.background,borderColor:n?(null==d?void 0:d.focusBorder)||i.focus:(null==d?void 0:d.border)||i.border,color:(null==d?void 0:d.text)||i.text};return(0,u.jsx)("div",{className:x,style:f,children:l})}var N=function(e){let{start:t,end:l,duration:n,onUpdate:o,className:i="",hidden:d=!1}=e,[s,r]=(0,a.useState)(t);return(0,a.useEffect)(()=>{let e=null,u=e=>1===e?1:1-Math.pow(2,-10*e),a=i=>{e||(e=i);let d=Math.min(u((i-e)/n)*(l-t)+t,l);r(d),o(d),d{e=null}},[t,l,n,o]),(0,u.jsxs)("div",{className:"".concat(d&&"hidden"," ").concat(i),children:[Math.round(s),"%"]})};function k(e){let{content:t}=e,{theme:l}=(0,D.d)(),[n,o]=(0,a.useState)(0),i=r(l),d=null==t?void 0:t.data.colors,s={backgroundImage:"conic-gradient(".concat((null==d?void 0:d.startColor)||i.focus,"BF 0%, ").concat((null==d?void 0:d.endColor)||i.focus," ").concat(n,"%, ").concat((null==d?void 0:d.bgColor)||i.border," 0)"),backgroundColor:"#000000"},c={backgroundColor:(null==d?void 0:d.background)||i.background};return(0,u.jsxs)("div",{className:"flex flex-auto justify-center items-center relative p-2",children:[(0,u.jsx)("div",{className:"flex flex-auto rounded-full aspect-square p-3.5",style:s,children:(0,u.jsx)("div",{className:"w-full h-full rounded-full",style:c})}),(0,u.jsx)("span",{className:"flex text-3xl font-bold tracking-tighter absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,u.jsx)(N,{start:0,end:t.data.score,duration:5e3,onUpdate:o})})]})}let F="grid grid-cols-2 content-stretch justify-items-stretch gap-2",B=e=>"https://cdn.xquiz.co/images/".concat(e);var A=l(7053),S=l.n(A);function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t,e=>e.toString(36).padStart(2,"0")).join("").slice(0,e)}var z={link:function(e){let{targetNode:t,searchParams:l,router:u}=e,n=l.toString(),a=t.data.url,o=a.includes("?"),i=n?"".concat(a).concat(o?"&":"?").concat(n):a;u.push(i)},redirect:function(e){let{targetNode:t,searchParams:l,router:u}=e,n=l.toString(),a=t.data.url,o=a.includes("?"),i=n?"".concat(a).concat(o?"&":"?").concat(n):a;u.push(i)},webhook:function(e){let{targetNode:t,variables:l,payload:u,handleClick:n}=e,a=null==t?void 0:t.data.url;null==t||t.data.token;let o=(null==t?void 0:t.data.method)||"POST",i=null==t?void 0:t.data.content,d=null==t?void 0:t.data.sendActionEvents,s=!("sendActionEvents"in(null==t?void 0:t.data)),r=Array.isArray(i)&&i.length>0,c=Array.isArray(u)&&u.length>0,D=Array.isArray(l)&&l.length>0;return(async()=>{try{if(!a||!o||!r||!c&&!D)return;let e=d?u.filter(e=>"form"!==e.type).map(e=>({type:e.type,title:e.title,value:e.value})):void 0,t=l.filter(e=>i.includes(e.title)).map(e=>({title:e.title,value:e.value})),n={oldElement:s,url:a,method:o,variables:t.reduce((e,t)=>(e[t.title]=t.value,e),{})};s||(n={...n,payload:e});let x=await fetch("".concat("https://api-tracking.xquiz.co","/api/webhook/send"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});await x.json(),x.ok}catch(e){}})(),n("target-".concat(null==t?void 0:t.id))}},q=l(9376);let T=()=>{let{setPageContent:e,edges:t,nodes:l}=(0,D.d)(),u=(0,q.useSearchParams)(),{payload:n,variables:o,updateSession:i}=(0,c.k)(),d=(0,q.useRouter)(),s=(0,a.useCallback)(a=>{i();let r=null==t?void 0:t.find(e=>e.sourceHandle===a);if(r){let t=null==l?void 0:l.find(e=>e.id===r.target);if(t){if("page"===t.type)setTimeout(()=>{e(t)},100);else if("function"===t.type){let e=z[t.data.type];e?e({targetNode:t,payload:n,variables:o,searchParams:u,router:d,handleClick:s}):console.error("Fun\xe7\xe3o ".concat(t.data.title," n\xe3o encontrada."))}}}},[t,l,n,d,u,e,i,o]);return s},P={true:"flex-auto rounded-xl font-bold text-center border-b-8 transition-all py-5 active",false:"flex-auto rounded-xl font-bold text-center border-b-8 transition-all py-5 hover:scale-105 hover:shadow-xl"};function L(e){var t;let{type:l,content:n,children:o}=e,{setPayload:i}=(0,c.k)(),d=T(),{theme:s,pageContent:x,xTracking:f}=(0,D.d)(),[v,m]=(0,a.useState)(!1),h=r(s),g=null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.colors,p=null==x?void 0:x.id,j=null==n?void 0:n.id,b=null==n?void 0:n.title,C=(null==n?void 0:n.data.title)?S()(null==n?void 0:n.data.title):void 0,E=null==n?void 0:n.type,y=(null==n?void 0:n.data.animation)!=="none"?null==n?void 0:n.data.animation:void 0,w=v?P.true:"".concat(P.false," ").concat(y),N={backgroundImage:(null==g?void 0:g.focus)?void 0:"linear-gradient(to bottom right, ".concat(h.focus,"bf, ").concat(h.focus,"f2)"),backgroundColor:(null==g?void 0:g.focus)||"#000000",borderColor:(null==g?void 0:g.focusBorder)?g.focusBorder:"".concat(h.focus,"1a"),color:(null==g?void 0:g.text)||"#FFFFFF"},k=(0,a.useCallback)(()=>{if(f){let e={id:I(),pageId:p,contentId:j,title:b,type:E,date:new Date().toISOString(),value:C};i(t=>[...Array.isArray(t)?t:[],e])}m(!0)},[j,p,b,E,C,i,f]);return(0,a.useEffect)(()=>{let e="button"===l;v&&e&&d(j)},[v,j,d,l]),(0,u.jsx)("button",{type:l,onClick:k,className:w,style:N,children:o})}let _={true:"flex flex-auto w-full bottom-0 left-0 justify-center fixed px-5 pb-6 pt-12",false:"flex flex-auto justify-center"},M={light:"bg-gradient-to-t from-white from-65%",dark:"bg-gradient-to-t from-gray-950 from-55%"};var R=l(8667);let U=e=>{let t=e.match(/]*>.*<\/div>/),l=e.match(/]*>([\s\S]*?)<\/script>/);return{htmlContent:t?t[0]:"",scriptContent:l?l[1]:""}},Z=e=>{let t=e.match(/vid_([a-zA-Z0-9-]+)/);return t?t[1]:null},O={"16/9":"16/9","1/1":"1/1","4/5":"4/5","9/16":"9/16"},V={"w-40":"w-40","w-44":"w-44","w-48":"w-48","w-52":"w-52","w-56":"w-56","w-60":"w-60","w-64":"w-64","w-72":"w-72","w-80":"w-80","w-96":"w-96","w-full":"w-full max-w-full h-auto"},W={true:"flex flex-auto w-full h-full justify-center items-center absolute left-0 top-0 z-50",false:"flex flex-auto justify-center"};function H(e){let{svgContent:t,className:l}=e;return(0,u.jsx)("div",{className:"".concat(l," fill-current"),dangerouslySetInnerHTML:{__html:t}})}let X=e=>"https://cdn.xquiz.co/images/".concat(e);var G=l(1140);let J={left:"flex flex-col flex-auto items-start text-left gap-4 px-5 py-6",center:"flex flex-col flex-auto items-center text-center gap-4 px-5 py-6",right:"flex flex-col flex-auto items-end text-right gap-4 px-5 py-6"},Y=e=>"https://cdn.xquiz.co/images/".concat(e),K={left:"items-start text-left",center:"items-center text-center",right:"items-end text-right"};function Q(e){let{content:t,option:l}=e,n=(null==l?void 0:l.text)||"",a=(null==t?void 0:t.data.icon)||"";return(0,u.jsxs)("div",{className:"flex gap-3",children:[(0,u.jsx)(H,{className:"mt-1 size-5 flex-none",svgContent:a}),(0,u.jsx)("div",{className:"flex-auto text-sm",children:(0,u.jsx)(j,{content:n})})]})}var $=l(3464),ee=l(1774);function et(e){var t;let{option:l}=e,{variables:n,setVariables:a}=(0,c.k)(),{pageContent:o,variables:i,theme:d}=(0,D.d)(),s=null==i?void 0:i.find(e=>e.contentId===l.id),x=n.find(e=>e.contentId===l.id&&e.title===(null==s?void 0:s.title)),f=r(d),v=null==l?void 0:l.colors,m={borderColor:(null==v?void 0:v.border)||f.border,color:(null==v?void 0:v.text)||f.text},h={backgroundColor:(null==v?void 0:v.background)||f.background,borderColor:(null==v?void 0:v.border)||f.border,color:(null==v?void 0:v.text)||f.text};return(0,u.jsxs)("div",{className:"relative block w-full",children:[(0,u.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-4",style:m,children:(0,u.jsx)(H,{className:"flex-none w-5 h-auto",svgContent:l.icon})}),"tel"===l.type?(0,u.jsx)(ee.ZP,{onChange:e=>{if(s){let t={id:s.id,pageId:(null==o?void 0:o.id)||"",contentId:null==l?void 0:l.id,title:s.title,value:e};a(e=>{let l=e.findIndex(e=>e.title===s.title);if(-1===l)return[...e,t];{let u=[...e];return u[l]=t,u}})}},placeholder:null==l?void 0:l.placeholder,value:(null==x?void 0:x.value)||"",rules:{required:!0},international:!1,autoComplete:"tel",maxLength:15,required:null===(t=null==l?void 0:l.required)||void 0===t||t,country:"BR",className:"block w-full form-input rounded-xl shadow-lg border placeholder-current p-5 pl-12 placeholder:opacity-50 focus:ring-current focus:ring focus:ring-inset shadow-gray-600/5",style:h}):(0,u.jsx)("input",{required:!0,id:l.title,type:l.type,value:(null==x?void 0:x.value)||"",autoComplete:l.title,onChange:e=>{if(s){let t={id:s.id,pageId:(null==o?void 0:o.id)||"",contentId:null==l?void 0:l.id,title:s.title,value:e.target.value};a(e=>{let l=e.findIndex(e=>e.id===s.id);if(-1===l)return[...e,t];{let u=[...e];return u[l]=t,u}})}},placeholder:l.placeholder,className:"block w-full form-input rounded-xl shadow-lg border placeholder-current p-5 pl-12 placeholder:opacity-50 focus:ring-current focus:ring-2 focus:ring-inset shadow-black/5",style:h})]})}let el="flex flex-auto flex-col gap-2",eu={none:"flex flex-auto","fade-in":"flex flex-auto fade-in"},en={left:"flex-auto justify-start whitespace-pre-line prose text-left",center:"flex-auto justify-center whitespace-pre-line prose text-center",right:"flex-auto justify-end whitespace-pre-line prose text-right"},ea={"text-sm":"text-sm","text-base":"text-base","text-lg":"text-lg","text-xl":"text-xl","text-2xl":"text-2xl"};function eo(e){let{option:t,content:l}=e,n=(null==t?void 0:t.title)||"",a=(null==t?void 0:t.result)||"";return(0,u.jsx)(w,{content:l,children:(0,u.jsxs)("div",{className:"flex flex-col flex-auto items-start gap-2 px-5 py-4",children:[(0,u.jsx)("span",{className:"text-xs opacity-60",children:(0,u.jsx)(j,{content:n})}),(0,u.jsxs)("div",{className:"flex flex-row items-center gap-1.5",children:[(0,u.jsx)(H,{className:"flex-none h-auto w-4",svgContent:t.icon}),(0,u.jsx)("span",{className:"text-sm",children:(0,u.jsx)(j,{content:a})})]})]})})}let ei="flex flex-auto flex-col gap-2.5",ed={"001":"✅","002":"\uD83D\uDE36","003":"\uD83D\uDE11","004":"\uD83D\uDE10","005":"\uD83E\uDD28","006":"\uD83E\uDD10","007":"\uD83E\uDEE1","008":"\uD83E\uDD14","009":"\uD83E\uDD2B","010":"\uD83E\uDEE3","011":"\uD83E\uDEE2","012":"\uD83E\uDD2D","013":"\uD83E\uDD17","014":"\uD83E\uDD11","015":"\uD83D\uDE1D","016":"\uD83E\uDD2A","017":"\uD83D\uDE1C","018":"\uD83D\uDE19","019":"\uD83D\uDE0A","020":"\uD83D\uDE17","021":"\uD83E\uDD29","022":"\uD83E\uDEE0","023":"\uD83D\uDE02","024":"\uD83D\uDE05","025":"\uD83D\uDE06","026":"\uD83D\uDE01","027":"\uD83D\uDE03","028":"\uD83D\uDE00","029":"\uD83D\uDE12","030":"\uD83D\uDE0F","031":"\uD83D\uDE36‍\uD83C\uDF2B️","032":"\uD83D\uDE28","033":"\uD83D\uDE28","034":"\uD83D\uDE27","035":"\uD83D\uDE26","036":"\uD83E\uDD79","037":"\uD83E\uDD7A","038":"\uD83D\uDE33","039":"\uD83D\uDE32","040":"\uD83D\uDE2F","041":"\uD83D\uDE2E","042":"☹️","043":"\uD83D\uDE41","044":"\uD83D\uDE1F","045":"\uD83E\uDEE4","046":"\uD83D\uDE15","047":"\uD83E\uDDD0","048":"\uD83E\uDDD0","049":"\uD83E\uDD13","050":"\uD83D\uDE0E","051":"\uD83E\uDD78","052":"\uD83E\uDD73","053":"\uD83E\uDD20","054":"\uD83E\uDD2F","055":"\uD83D\uDE35‍\uD83D\uDCAB","056":"\uD83D\uDE35","057":"\uD83E\uDD74","058":"\uD83E\uDD76","059":"\uD83E\uDD75","060":"\uD83E\uDD27","061":"\uD83E\uDD2E","062":"\uD83E\uDD22","063":"\uD83E\uDD15","064":"\uD83E\uDD12","065":"\uD83D\uDE37","066":"\uD83D\uDE34","067":"\uD83E\uDD24","068":"\uD83D\uDE2A","069":"\uD83D\uDE14","070":"\uD83D\uDE0C","071":"\uD83E\uDEE8","072":"\uD83E\uDD25","073":"\uD83D\uDE2E‍\uD83D\uDCA8","074":"\uD83D\uDE2C","075":"\uD83D\uDE44","076":"\uD83D\uDE22","077":"\uD83D\uDE25","078":"\uD83D\uDC69‍\uD83D\uDD27","079":"\uD83D\uDC68‍\uD83D\uDD27","080":"\uD83E\uDDD1‍\uD83D\uDD27","081":"\uD83D\uDC69‍\uD83C\uDF73","082":"\uD83D\uDC68‍\uD83C\uDF73","083":"\uD83E\uDDD1‍\uD83C\uDF73","084":"\uD83D\uDC69‍\uD83C\uDF3E","085":"\uD83D\uDC68‍\uD83C\uDF3E","086":"\uD83E\uDDD1‍\uD83C\uDF3E","087":"\uD83D\uDC69‍⚖️","088":"\uD83D\uDC68‍⚖️","089":"\uD83E\uDDD1‍⚖️","090":"\uD83D\uDC69‍\uD83C\uDFEB","091":"\uD83D\uDC68‍\uD83C\uDFEB","092":"\uD83E\uDDD1‍\uD83C\uDFEB","093":"\uD83D\uDC69‍\uD83C\uDF93","094":"\uD83D\uDC68‍\uD83C\uDF93","095":"\uD83E\uDDD1‍\uD83C\uDF93","096":"\uD83D\uDC69‍⚕️","097":"\uD83D\uDC68‍⚕️","098":"\uD83E\uDDD1‍⚕️","099":"\uD83E\uDD37‍♀️",100:"\uD83E\uDD37",101:"\uD83E\uDD26‍♀️",102:"\uD83E\uDD26‍♂️",103:"\uD83E\uDD26",104:"\uD83D\uDE47‍♀️",105:"\uD83D\uDE47",106:"\uD83E\uDDCF‍♀️",107:"\uD83E\uDDCF",108:"\uD83D\uDE4B‍♀️",109:"\uD83D\uDE4B‍♂️",110:"\uD83D\uDE4B",111:"\uD83D\uDC81‍♀️",112:"\uD83D\uDC81‍♂️",113:"\uD83D\uDC81",114:"\uD83D\uDE46‍♀️",115:"\uD83D\uDE46‍♂️",116:"\uD83D\uDE46",117:"\uD83D\uDE45‍♀️",118:"\uD83D\uDE45‍♂️",119:"\uD83D\uDE45",120:"\uD83D\uDE4E‍♀️",121:"\uD83D\uDE4E‍♂️",122:"\uD83D\uDE4E",123:"\uD83D\uDE4D‍♀️",124:"\uD83D\uDE4D‍♂️",125:"\uD83D\uDC75",126:"\uD83D\uDC74",127:"\uD83E\uDDD3",128:"\uD83D\uDC71‍♂️",129:"\uD83D\uDC71‍♀️",130:"\uD83E\uDDD1‍\uD83E\uDDB2",131:"\uD83D\uDC69‍\uD83E\uDDB2",132:"\uD83E\uDDD1‍\uD83E\uDDB1",133:"\uD83D\uDC69‍\uD83E\uDDB1",134:"\uD83D\uDC69",135:"\uD83D\uDC68‍\uD83E\uDDB2",136:"\uD83D\uDC68‍\uD83E\uDDB3",137:"\uD83D\uDC68‍\uD83E\uDDB1",138:"\uD83E\uDDD4‍♀️",139:"\uD83E\uDDD4‍♂️",140:"\uD83D\uDC68",141:"\uD83E\uDDD1",142:"\uD83D\uDC67",143:"\uD83D\uDC66",144:"\uD83E\uDDD2",145:"\uD83D\uDC76",146:"\uD83E\uDEE6",147:"\uD83D\uDC44",148:"\uD83D\uDC45",149:"\uD83D\uDC41️",150:"\uD83D\uDC40",151:"\uD83E\uDDB4",152:"\uD83E\uDDB7",153:"\uD83E\uDEC1",154:"\uD83E\uDEC0",155:"\uD83E\uDDE0",156:"\uD83D\uDC43",157:"\uD83D\uDE0D",158:"\uD83E\uDDBB",159:"\uD83D\uDC42",160:"\uD83E\uDDB6",161:"\uD83E\uDDB5",162:"\uD83D\uDCAA",163:"\uD83D\uDC85",164:"✍️",165:"\uD83D\uDE4F",166:"\uD83E\uDD1D",167:"\uD83E\uDD32",168:"\uD83D\uDC50",169:"\uD83E\uDEF6",170:"\uD83D\uDE4C",171:"\uD83D\uDC4F",172:"\uD83E\uDD1C",173:"\uD83E\uDD1B",174:"\uD83D\uDC4A",175:"✊",176:"\uD83D\uDC4E",177:"\uD83D\uDC4D",178:"\uD83E\uDEF5",179:"☝️",180:"\uD83D\uDC47",181:"\uD83D\uDD95",182:"\uD83D\uDC46",183:"\uD83D\uDC49",184:"\uD83D\uDC48",185:"\uD83E\uDD19",186:"\uD83E\uDD18",187:"\uD83E\uDD1F",188:"\uD83E\uDEF0",189:"\uD83E\uDD1E",190:"✌️",191:"\uD83E\uDD0F",192:"\uD83E\uDD0C",193:"\uD83D\uDC4C",194:"\uD83E\uDEF8",195:"\uD83E\uDEF7",196:"\uD83E\uDEF4",197:"\uD83E\uDEF3",198:"\uD83E\uDEF2",199:"\uD83E\uDEF1",200:"\uD83D\uDD96",201:"✋",202:"\uD83D\uDD90️",203:"\uD83E\uDD1A",204:"\uD83D\uDC4B",205:"\uD83D\uDE4A",206:"\uD83D\uDE49",207:"\uD83D\uDE48",208:"\uD83D\uDE3E",209:"\uD83D\uDE3F",210:"\uD83D\uDE40",211:"\uD83D\uDE3D",212:"\uD83D\uDE3C",213:"\uD83D\uDE3B",214:"\uD83D\uDE39",215:"\uD83D\uDE38",216:"\uD83D\uDE3A",217:"\uD83E\uDD16",218:"\uD83D\uDC7E",219:"\uD83D\uDC7D",220:"\uD83D\uDC7B",221:"\uD83D\uDC7A",222:"\uD83D\uDC79",223:"\uD83E\uDD21",224:"\uD83D\uDCA9",225:"☠️",226:"\uD83D\uDC80",227:"\uD83D\uDC7F",228:"\uD83D\uDE08",229:"\uD83E\uDD2C",230:"\uD83D\uDE20",231:"\uD83D\uDE21",232:"\uD83D\uDE24",233:"\uD83D\uDE2B",234:"\uD83D\uDE2B",235:"\uD83D\uDE29",236:"\uD83D\uDE13",237:"\uD83D\uDE1E",238:"\uD83D\uDE23",239:"\uD83D\uDE16",240:"\uD83D\uDE31",241:"\uD83D\uDE2D",242:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC66‍\uD83D\uDC66",243:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC66‍\uD83D\uDC66",244:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC66‍\uD83D\uDC66",245:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC66‍\uD83D\uDC66",246:"\uD83D\uDC69‍❤️‍\uD83D\uDC68",247:"\uD83D\uDC69‍❤️‍\uD83D\uDC8B‍\uD83D\uDC68",248:"\uD83D\uDECC",249:"\uD83C\uDF0A",250:"\uD83D\uDCA7",251:"\uD83D\uDD25",252:"⚡️",253:"\uD83C\uDF08",254:"\uD83C\uDF1F",255:"\uD83C\uDF1E",256:"\uD83C\uDF1A",257:"\uD83C\uDF15",258:"\uD83C\uDF11",259:"☀️",260:"\uD83D\uDC24",261:"\uD83D\uDC23",262:"\uD83D\uDC31",263:"\uD83D\uDC15",264:"\uD83D\uDC15",265:"\uD83E\uDE78",266:"\uD83D\uDC65",267:"\uD83D\uDC64",268:"\uD83D\uDDE3️",269:"\uD83D\uDC7C",270:"\uD83D\uDC68‍\uD83C\uDF7C",271:"\uD83E\uDD31",272:"\uD83E\uDD30",273:"\uD83D\uDC70‍♀️",274:"\uD83E\uDD35‍♀️",275:"\uD83E\uDD35‍♂️",276:"\uD83D\uDC78",277:"\uD83E\uDD34",278:"\uD83D\uDC77‍♀️",279:"\uD83D\uDC77‍♂️",280:"\uD83D\uDD75️‍♀️",281:"\uD83D\uDD75️‍♂️",282:"\uD83D\uDC6E‍♀️",283:"\uD83D\uDC6E‍♂️",284:"\uD83D\uDC68‍\uD83D\uDE80",285:"\uD83D\uDC69‍\uD83D\uDE80",286:"\uD83D\uDC69‍\uD83D\uDCBB",287:"\uD83D\uDC68‍\uD83D\uDCBB",288:"\uD83D\uDC69‍\uD83D\uDCBC",289:"\uD83D\uDC68‍\uD83D\uDCBC",290:"\uD83D\uDDFD",291:"\uD83C\uDFE2",292:"\uD83C\uDFE1",293:"\uD83C\uDFE0",294:"\uD83D\uDDFA️",295:"\uD83C\uDF0F",296:"❤️",297:"\uD83D\uDD2B",298:"\uD83C\uDFC6",299:"\uD83C\uDF81",300:"\uD83E\uDD42",301:"\uD83C\uDF69",302:"\uD83C\uDF2D",303:"\uD83C\uDF5F",304:"\uD83C\uDF55",305:"\uD83C\uDF54",306:"\uD83C\uDF57",307:"\uD83C\uDF46",308:"\uD83E\uDD51",309:"\uD83C\uDF52",310:"\uD83C\uDF51",311:"\uD83C\uDF4C",312:"\uD83D\uDC59",313:"\uD83D\uDC57",314:"⏰",315:"\uD83E\uDDF3",316:"⏳",317:"⌛️",318:"\uD83D\uDE80",319:"\uD83D\uDEE9️",320:"✈️",321:"\uD83D\uDEA8",322:"\uD83D\uDE99",323:"\uD83D\uDE98",324:"\uD83D\uDE97",325:"\uD83D\uDEAD",326:"\uD83D\uDEAB",327:"\uD83D\uDEBA",328:"\uD83D\uDCAC",329:"\uD83D\uDCA6",330:"\uD83D\uDCA5",331:"\uD83D\uDCAF",332:"❤️‍\uD83E\uDE79",333:"❤️‍\uD83D\uDD25",334:"\uD83D\uDC94",335:"\uD83D\uDC96",336:"\uD83D\uDC98",337:"\uD83D\uDC8C",338:"\uD83E\uDDFB",339:"\uD83D\uDEC1",340:"✉️",341:"\uD83D\uDD13",342:"\uD83D\uDD12",343:"\uD83D\uDD11",344:"\uD83D\uDD10",345:"\uD83D\uDCBC",346:"\uD83D\uDCC8",347:"\uD83D\uDCCA",348:"\uD83D\uDCC9",349:"\uD83D\uDCB9",350:"\uD83D\uDCB8",351:"\uD83D\uDCB5",352:"\uD83D\uDCB0",353:"\uD83D\uDCF0",354:"\uD83D\uDCDA",355:"\uD83D\uDCA1",356:"\uD83D\uDCF8",357:"\uD83D\uDCFA",358:"\uD83C\uDFAC",359:"\uD83D\uDCBB",360:"☎️",361:"\uD83D\uDCF1",362:"\uD83D\uDC8E",363:"\uD83D\uDC8D",364:"\uD83C\uDF93",365:"\uD83D\uDC51",366:"\uD83D\uDC60",367:"\uD83D\uDC5E",368:"\uD83D\uDC5D",369:"\uD83D\uDC5C",370:"⚠️"},es={none:"flex flex-auto items-center gap-3 p-4",left:"flex flex-auto items-center gap-3 p-4",right:"flex flex-row-reverse flex-auto items-center gap-3 p-4"},er={"image-left":"flex flex-row flex-auto justify-stretch items-stretch gap-3","image-right":"flex flex-row-reverse flex-auto justify-stretch items-stretch gap-3","image-top":"flex flex-col flex-auto justify-stretch items-stretch gap-3","image-bottom":"flex flex-col-reverse flex-auto justify-stretch items-stretch gap-3"},ec={"image-left":"h-auto w-full max-w-16","image-right":"h-auto w-full max-w-16","image-top":"h-auto w-full max-w-32","image-bottom":"h-auto w-full max-w-32"},eD={"image-left":"text-4xl","image-right":"text-4xl","image-top":"text-7xl","image-bottom":"text-7xl"},ex={left:"flex flex-auto flex-col justify-center gap-1 text-left",center:"flex flex-auto flex-col justify-center gap-1 text-center",right:"flex flex-auto flex-col justify-center gap-1 text-right"},ef={"image-only":"flex flex-auto items-center justify-center","text-image":"flex flex-none items-center justify-center"},ev=e=>"https://cdn.xquiz.co/images/".concat(e);function em(e){var t;let{content:l,option:o,setNewValues:i}=e,{theme:d}=(0,D.d)(),s=T(),[c,x]=(0,a.useState)(!1),f=o.id,v=null==l?void 0:l.data.multiple,m=S()(o.title),h=(0,a.useCallback)(()=>{i(e=>e.includes(m)?e.filter(e=>e!==m):[...e,m]),x(!c)},[c,m,i]);(0,a.useEffect)(()=>{c&&!v&&s(f)},[c,f,v,s]);let g=null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.colors,p=r(d),b=c?"mt-[4px]":"border-b-4",C=es[null==l?void 0:l.data.checkbox]||es.none,E=er[null==l?void 0:l.data.placement],y=(null==l?void 0:l.data.model)==="text-emoji",N=!Number.isNaN(parseInt(o.emoji,10)),k=eD[null==l?void 0:l.data.placement],F=ec[null==l?void 0:l.data.placement],B=(null==l?void 0:l.data.model)==="image-only"||(null==l?void 0:l.data.model)==="text-image",A=ef[null==l?void 0:l.data.model],I=null==o?void 0:o.image,z="object"==typeof I&&null!==I,q=z?I.uuid:I,P=z&&I.width||300,L=z&&I.height||300,_=ev(q),M=(null==l?void 0:l.data.model)!=="image-only",R=ex[null==l?void 0:l.data.alignment],U=(null==l?void 0:l.data.checkbox)==="left"||(null==l?void 0:l.data.checkbox)==="right",Z={backgroundColor:(null==d?void 0:d.dark)?"#000000":"#FFFFFF",borderColor:(null==g?void 0:g.border)||"".concat(p.focus,"B3")},O={color:(null==g?void 0:g.border)||p.focus},V=N?ed[o.emoji]:o.emoji,W=null==o?void 0:o.title,H=null==o?void 0:o.subtitle;return(0,u.jsx)(w,{content:l,selected:c,className:b,children:(0,u.jsxs)("button",{className:C,onClick:h,children:[U&&(0,u.jsx)("div",{className:"flex-none size-7 border-2 rounded-full",style:Z,children:c&&(0,u.jsx)(G.N9r,{className:"size-6 p-0.5",style:O})}),(0,u.jsxs)("div",{className:E,children:[y&&(0,u.jsx)("div",{className:"flex flex-none justify-center items-center py-1",children:(0,u.jsx)("span",{className:k,children:(0,u.jsx)(j,{content:V})})}),B&&(0,u.jsx)("div",{className:A,children:(0,u.jsx)(n.default,{width:P,height:L,quality:75,alt:o.title,className:F,src:_,priority:!0})}),M&&(0,u.jsxs)("div",{className:R,children:[(0,u.jsx)("div",{className:"text-sm",children:(0,u.jsx)(j,{content:W})}),H&&(0,u.jsx)("div",{className:"text-xs opacity-70",children:(0,u.jsx)(j,{content:H})})]})]})]})})}let eh={"grid-cols-1":"grid grid-cols-1 flex-auto gap-2","grid-cols-2":"grid grid-cols-2 flex-auto gap-2"};function eg(e){let{content:t,option:l}=e,{theme:n}=(0,D.d)(),[o,i]=(0,a.useState)(0),d=r(n),s=null==t?void 0:t.data.colors,c=null==l?void 0:l.colors,x=(null==l?void 0:l.title)||"",f=(null==l?void 0:l.label)||"",v=(null==l?void 0:l.subtitle)||"",m=(null==l?void 0:l.description)||"",h={borderColor:(null==s?void 0:s.border)||d.border},g={backgroundColor:(null==c?void 0:c.background)||d.border},p={backgroundImage:(null==c?void 0:c.focus)?void 0:"linear-gradient(to top, ".concat(d.focus,"99, ").concat(d.focus,")"),backgroundColor:(null==c?void 0:c.focus)||"#111111",color:(null==c?void 0:c.text)||"#FFFFFF",height:"".concat(o,"%")};return(0,u.jsxs)("div",{className:"flex flex-auto flex-col items-center justify-center gap-3.5 text-center",style:h,children:[(0,u.jsx)("span",{className:"text-xs font-bold line-clamp-2 px-1",children:(0,u.jsx)(j,{content:x})}),(0,u.jsx)("div",{className:"flex h-24 w-8 items-end overflow-hidden rounded-md",style:g,children:(0,u.jsxs)("div",{className:"flex flex-auto origin-bottom justify-center pt-1.5",style:p,children:[(0,u.jsx)("span",{className:"text-[8px] font-bold",children:(0,u.jsx)(j,{content:f})}),(0,u.jsx)(N,{start:0,end:l.score,duration:5e3,onUpdate:i,hidden:!0})]})}),(0,u.jsx)("span",{className:"text-xs font-bold px-2",children:(0,u.jsx)(j,{content:v})}),(0,u.jsx)("span",{className:"text-[10px] leading-4 px-2",children:(0,u.jsx)(j,{content:m})})]})}let ep="flex flex-col flex-auto relative rounded-xl overflow-hidden shadow-lg shadow-gray-500/5 p-5",ej=e=>{let t;let l=/]*>([\s\S]*?)<\/script>/gm,u=/]*src="([^"]+)"[^>]*><\/script>/gm,n=[],a=[],o=e;for(;null!==(t=l.exec(e));)t[1].trim()&&n.push(t[1]),o=o.replace(t[0],"");for(;null!==(t=u.exec(e));)a.push(t[1]),o=o.replace(t[0],"");return{htmlWithoutScripts:o,scripts:n,externalScripts:a}};var eb=l(9089);let eC=[5,12,20,25,18,35,36,35,27,21,13,6,15,13,8,25,28,31,30,23,20,13,8,12,9,15,18,36,40,32],eE={light:"w-1 h-5 rounded bg-gray-300",dark:"w-1 h-5 rounded bg-gray-600"};function ey(e){let{audioSrc:t,autoplay:l,audioWaves:n}=e,{theme:o}=(0,D.d)(),i=null==o?void 0:o.dark,d=(0,a.useRef)(null),[s,r]=(0,a.useState)(!1),[c,x]=(0,a.useState)(0),f=null==n?void 0:n.map(e=>5+35*e);(0,a.useEffect)(()=>{let e=d.current,t=()=>{if(e){let t=e.duration||0;x((e.currentTime||0)/t*100)}};return e&&e.addEventListener("timeupdate",t),()=>{e&&e.removeEventListener("timeupdate",t)}},[]),(0,a.useEffect)(()=>{let e=d.current;if(e&&l&&!1===s){let t=e.play();void 0!==t&&t.then(()=>{r(!0)}).catch(e=>{console.warn("Autoplay bloqueado pelo navegador:",e)})}},[l]);let v=i?eE.dark:eE.light;return(0,u.jsxs)("div",{className:"flex flex-auto items-center gap-4",children:[(0,u.jsx)("button",{type:"button",onClick:()=>{let e=d.current;e&&(s?(e.pause(),r(!1)):(e.play(),r(!0)))},children:s?(0,u.jsx)(eb.Wh,{size:18}):(0,u.jsx)(eb.gmG,{size:18})}),(0,u.jsxs)("div",{className:"flex flex-auto h-10 items-center relative",children:[(0,u.jsx)("div",{className:"w-4 h-4 absolute rounded-full shadow transition-all duration-700 -translate-x-1/2 z-20 bg-sky-500",style:{left:"".concat(c,"%")}}),(0,u.jsx)("div",{className:"flex w-0 h-full items-center absolute overflow-hidden transition-all duration-700 z-10",style:{width:"".concat(c,"%")},children:(0,u.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:50}).map((e,t)=>(0,u.jsx)("div",{className:v,style:{height:"".concat(f?f[t]:eC[t],"px")}},t))})}),(0,u.jsx)("div",{className:"flex w-full h-full items-center absolute overflow-hidden z-0",children:(0,u.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:50}).map((e,t)=>(0,u.jsx)("div",{className:v,style:{height:"".concat(f?f[t]:eC[t],"px"),opacity:"20%"}},t))})})]}),(0,u.jsx)("audio",{ref:d,src:t,autoPlay:l})]})}let ew=e=>"https://cdn.xquiz.co/audios/".concat(e),eN=e=>"https://cdn.xquiz.co/images/".concat(e),ek=e=>"https://cdn.xquiz.co/images/".concat(e);function eF(e){let{option:t}=e,l=null==t?void 0:t.image,a=l.uuid,o=l.width||500,i=l.height||500,d=ek(a);return(0,u.jsx)(n.default,{src:d,alt:"Imagem",width:o,height:i,quality:60,className:"w-full min-w-full shrink-0 snap-center pointer-events-none",priority:!0},t.id)}var eB=l(2451),eA=l(407);let eS={light:"size-2 rounded-full bg-gray-300",dark:"size-2 rounded-full bg-gray-600"};var eI={header:function(e){let{content:t}=e,{history:l}=(0,c.k)(),{theme:a}=(0,D.d)(),o=v(),i=l&&(null==l?void 0:l.length)>1,d=null==t?void 0:t.data.backButton,s={width:"".concat(null==t?void 0:t.data.size,"px"),height:"auto"},r=(null==t?void 0:t.data.custom)?null==t?void 0:t.data.image:null==a?void 0:a.logo,x="object"==typeof r&&null!==r,g=x?r.uuid:r,p=x&&r.width||200,j=x&&r.height||200,b=h(g),C=d&&i?m.true:m.false;return(0,u.jsxs)("div",{className:"grid grid-cols-3 flex-auto items-center text-center gap-1",children:[(0,u.jsx)("div",{className:"flex justify-start",children:(0,u.jsx)(f.Z,{size:18,onClick:o,className:C,color:"currentColor"})}),(0,u.jsx)("div",{className:"flex justify-center",children:(0,u.jsx)(n.default,{src:b,alt:"Logo",width:p,height:j,style:s,priority:!0})}),(0,u.jsx)("div",{className:"hidden justify-end",children:(0,u.jsx)("span",{})})]})},progress:function(e){let{content:t}=e,{theme:l}=(0,D.d)(),{progress:n,setProgress:o}=(0,c.k)();(0,a.useEffect)(()=>{(null==t?void 0:t.data.end)&&setTimeout(()=>{o(null==t?void 0:t.data.end)},350)},[null==t?void 0:t.data.end]);let i=r(l),d=null==t?void 0:t.data.colors,f=null==t?void 0:t.data.end,v={backgroundColor:(null==d?void 0:d.background)||i.background},m={width:"".concat(n

"!==c&&(0,u.jsx)("div",{className:s,children:(0,u.jsx)(j,{content:c})})]})},quiz:function(e){var t;let{content:l}=e,{xTracking:n,pageContent:o}=(0,D.d)(),{setPayload:i}=(0,c.k)(),[d,s]=(0,a.useState)([]);(0,a.useEffect)(()=>{if(n&&d.length>0){let e={id:I(),pageId:null==o?void 0:o.id,contentId:null==l?void 0:l.id,title:null==l?void 0:l.title,type:null==l?void 0:l.type,value:d,date:new Date().toISOString()};i(t=>{let u=t.findIndex(e=>e.contentId===(null==l?void 0:l.id));if(-1===u)return[...t,e];{let l=[...t];return l[u]={...l[u],...e},l}})}},[d]);let r=null==l?void 0:l.data.columns,x=(null==l?void 0:l.data.animation)!=="none"?null==l?void 0:l.data.animation:void 0,f=x?"".concat(eh[r]," ").concat(x):eh[r];return(0,u.jsx)("div",{className:f,children:(null==l?void 0:l.data.content)&&(null==l?void 0:null===(t=l.data.content)||void 0===t?void 0:t.map(e=>!e.deleted&&(0,u.jsx)(em,{content:l,option:e,newValues:d,setNewValues:s},e.id)))})},image:function(e){let{content:t}=e,l=(null==t?void 0:t.data.animation)!=="none"?"".concat(o," ").concat(null==t?void 0:t.data.animation):o,a="".concat(null==t?void 0:t.data.size," h-auto"),d=null==t?void 0:t.data.image,s="object"==typeof d&&null!==d,r=s?d.uuid:d,c=s&&d.width||500,D=s&&d.height||500,x=i(r);return(0,u.jsx)("div",{className:l,children:(0,u.jsx)(n.default,{src:x,alt:"Imagem",width:c,height:D,className:a,quality:60,priority:!0})})},report:function(e){let{content:t}=e,l=(null==t?void 0:t.data.animation)!=="none"?null==t?void 0:t.data.animation:void 0,a=l?"".concat(F," ").concat(l):F,o=null==t?void 0:t.data.image,i="object"==typeof o&&null!==o,d=i?o.uuid:o,s=i&&o.width||300,r=i&&o.height||300,c=B(d),D=null==t?void 0:t.data.title,x=null==t?void 0:t.data.subtitle,f=null==t?void 0:t.data.result;return(0,u.jsxs)("div",{className:a,children:[(0,u.jsx)(w,{content:t,children:(0,u.jsxs)("div",{className:"flex flex-col flex-auto row-span-2 justify-center items-stretch gap-2.5 px-2 py-4",children:[(0,u.jsxs)("div",{className:"flex flex-col",children:[(0,u.jsx)("div",{className:"text-center text-xs font-bold",children:(0,u.jsx)(j,{content:D})}),x&&(0,u.jsx)("div",{className:"text-center text-[10px]",children:(0,u.jsx)(j,{content:x})})]}),(0,u.jsx)(k,{content:t})]})}),(0,u.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,u.jsx)(w,{content:t,className:"!flex-none",children:(0,u.jsx)("div",{className:"flex justify-center items-center py-1.5",children:(0,u.jsx)("div",{className:"font-bold text-xs line-clamp-1 py-1.5",children:(0,u.jsx)(j,{content:f})})})}),(0,u.jsx)(w,{content:t,children:(0,u.jsx)("div",{className:"flex flex-auto justify-center items-end p-3 pb-0",children:(0,u.jsx)(n.default,{className:"flex-auto w-full h-auto",src:c,alt:"Imagem",width:s,height:r,priority:!0})})})]})]})},text:function(e){let{content:t}=e,l=eu[null==t?void 0:t.data.animation],n=(null==t?void 0:t.data.size)||"text-base",a=(null==t?void 0:t.data.alignment)||"left",o="".concat(en[a]," ").concat(ea[n]),i=null==t?void 0:t.data.text;return(0,u.jsx)("div",{className:l,children:(0,u.jsx)("div",{className:o,children:(0,u.jsx)(j,{content:i})})})},note:function(e){let{content:t}=e,l=null==t?void 0:t.data.title,n=null==t?void 0:t.data.text;return(0,u.jsx)(w,{content:t,children:(0,u.jsxs)("div",{className:"flex flex-auto gap-3 px-5 py-6",children:[(0,u.jsx)("div",{className:"flex-shrink-0",children:(0,u.jsx)(H,{className:"w-5 h-auto",svgContent:null==t?void 0:t.data.icon})}),(0,u.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,u.jsx)("div",{className:"text-base font-bold leading-5",children:(0,u.jsx)(j,{content:l})}),(0,u.jsx)("div",{className:"text-sm",children:(0,u.jsx)("div",{className:"flex-auto whitespace-pre-line prose",children:(0,u.jsx)(j,{content:n})})})]})]})})},button:function(e){var t,l;let{content:n,pageId:o}=e,{theme:i}=(0,D.d)(),d=null!==(t=null==n?void 0:n.data.videoDelay)&&void 0!==t?t:null==n?void 0:n.data.vturb,s=null!==(l=null==n?void 0:n.data.videoDelayTime)&&void 0!==l?l:null==n?void 0:n.data.vturbTime,[r,c]=(0,a.useState)(!d),[x,f]=(0,a.useState)(0);(0,a.useEffect)(()=>{!r&&("true"===localStorage.getItem("".concat(o,"-bv"))&&c(!0),x>s&&(localStorage.setItem("".concat(o,"-bv"),"true"),c(!0)))},[n,r,x,o,s]),(0,a.useEffect)(()=>{if(!r){let e=setInterval(()=>{let e=localStorage.getItem("".concat(o,"-vid"));if(e){let t=localStorage.getItem(e);t&&f(parseFloat(t))}else c(!0)},1e3);return()=>clearInterval(e)}},[n,o,r]);let v=(null==n?void 0:n.data.fixed)||!1,m=(null==i?void 0:i.dark)?M.dark:M.light,h=v?"".concat(_.true," ").concat(m):_.false,g=null==n?void 0:n.data.title;if(r)return(0,u.jsx)("div",{className:h,children:(0,u.jsx)("div",{className:"flex flex-auto max-w-lg justify-center",children:(0,u.jsx)(L,{type:"button",content:n,children:(0,u.jsx)(j,{content:g})})})})},video:function(e){let{content:t,pageId:l}=e,[n,o]=(0,a.useState)({htmlContent:"",scriptContent:""}),i=(null==t?void 0:t.data.type)==="vturb"||(null==t?void 0:t.data.type)==="ezvideo",d=(null==t?void 0:t.data.url)||void 0,s=d?function(e){let t=e.match(/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/(watch\?v=|embed\/|v\/|.+\?v=)?([^&]+)/);return t&&t[5]?t[5]:null}(d):void 0;(0,a.useEffect)(()=>{if(i){let{htmlContent:e,scriptContent:u}=U((null==t?void 0:t.data.source)||"");o({htmlContent:e,scriptContent:u});let n=Z((null==t?void 0:t.data.source)||"");localStorage.setItem("".concat(l,"-vid"),n)}},[t,l,i]);let r=V[(null==t?void 0:t.data.size)||"w-full"],c={aspectRatio:O[null==t?void 0:t.data.aspect]||"16/9"};return(0,u.jsxs)("div",{className:"flex flex-auto justify-center overflow-hidden",children:[(0,u.jsx)("div",{className:r,children:i?(0,g.ZP)(n.htmlContent):(0,u.jsx)("iframe",{title:"video",src:"https://www.youtube-nocookie.com/embed/".concat(s,"?autoplay=1&controls=1&disablekb=1&playsinline=1&cc_load_policy=0&showinfo=0&modestbranding=0&rel=0&loop=0"),style:c,className:"flex flex-auto w-full h-auto rounded-xl"})}),n.scriptContent&&i&&(0,u.jsx)(R.default,{id:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=new Uint8Array(e);return crypto.getRandomValues(t),Array.from(t,e=>e.toString(36).padStart(2,"0")).join("").slice(0,e)}(),strategy:"afterInteractive",children:n.scriptContent})]})},loading:function(e){var t;let{content:l}=e,[n,o]=(0,a.useState)(0),{theme:i}=(0,D.d)(),d=r(i),s=null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.colors,c=null==l?void 0:l.data.time,x=(null==l?void 0:l.data.absolute)?W.true:W.false,f=(null==l?void 0:l.data.animation)!=="none"?null==l?void 0:l.data.animation:void 0,v=f?"".concat(x," ").concat(f):x,m={backgroundColor:(null==l?void 0:l.data.absolute)?(null==s?void 0:s.background)||d.background:void 0,color:null==s?void 0:s.text},h={color:(null==s?void 0:s.focusBorder)?null==s?void 0:s.focusBorder:"#FFFFFF",backgroundColor:(null==s?void 0:s.border)||d.border},g={width:"".concat(n,"%"),backgroundImage:(null==s?void 0:s.focus)?void 0:"linear-gradient(to right, ".concat(d.focus,"99, ").concat(d.focus,")"),backgroundColor:(null==s?void 0:s.focus)?(null==s?void 0:s.focus)||d.focus:"#111111"},p=null==l?void 0:l.data.title,b=null==l?void 0:l.data.subtitle;return(0,u.jsx)("div",{className:v,style:m,children:(0,u.jsxs)("div",{className:"flex flex-col flex-auto max-w-lg min-w-80 items-center gap-4",children:[(0,u.jsxs)("div",{className:"flex w-11/12 items-center rounded-full relative p-0.5",style:h,children:[(0,u.jsx)("div",{className:"h-5 rounded-full",style:g}),(0,u.jsx)(N,{start:0,end:100,duration:c>1e3?c:1e3*c,onUpdate:o,className:"w-full absolute flex-auto text-xs text-current text-center font-semibold"})]}),(0,u.jsxs)("div",{className:"flex flex-auto flex-col items-center gap-3",children:[(0,u.jsx)("h1",{className:"font-bold text-base leading-6",children:(0,u.jsx)(j,{content:p})}),(0,u.jsx)("div",{className:"text-sm text-center",children:(0,u.jsx)(j,{content:b})})]})]})})},redirect:function(e){let{content:t}=e,l=T(),{setPayload:u}=(0,c.k)(),{pageContent:n,xTracking:o}=(0,D.d)(),i=null==n?void 0:n.id,d=null==t?void 0:t.id,s=null==t?void 0:t.title,r=null==t?void 0:t.type,x=null==t?void 0:t.data.time;(0,a.useEffect)(()=>{let e=setTimeout(()=>{if(o){let e={id:I(),pageId:i,contentId:d,title:s,type:r,date:new Date().toISOString()};u(t=>[...Array.isArray(t)?t:[],e])}l(d)},1e3*x);return()=>clearTimeout(e)})},chart:function(e){let{content:t}=e;return(0,u.jsx)(w,{content:t,children:(0,u.jsx)("div",{className:"grid flex-auto items-start grid-flow-col auto-cols-fr divide-x px-2 py-7",children:null==t?void 0:t.data.content.map(e=>!e.deleted&&(0,u.jsx)(eg,{content:t,option:e},e.id))})})},result:function(e){let{content:t}=e,{theme:l}=(0,D.d)(),[n,o]=(0,a.useState)(0),i=r(l),d=null==t?void 0:t.data.colors,s=(null==t?void 0:t.data.animation)!=="none"?null==t?void 0:t.data.animation:void 0,c=s?"".concat(ep," ").concat(s):ep,x={backgroundImage:"url('/assets/report-grid.svg'), linear-gradient(to right, ".concat((null==d?void 0:d.startColor)||"".concat(i.focus,"99"),", ").concat((null==d?void 0:d.endColor)||i.focus,")"),backgroundColor:"#111111",color:(null==d?void 0:d.text)||"#FFFFFF"},f={backgroundImage:"linear-gradient(to right, #FFFFFF10, #FFFFFF95",backgroundColor:(null==d?void 0:d.bgColor)||i.focus},v={transform:"translateX(calc(-50% + 12px)) translateY(calc(-100% - 11px))",backgroundColor:(null==d?void 0:d.focusBorder)||"#FFFFFF",color:(null==d?void 0:d.textFocus)?d.textFocus:"#000000"},m={borderColor:(null==d?void 0:d.focusBorder)||"#FFFFFF"},h={backgroundColor:(null==d?void 0:d.focusBorder)||"#FFFFFF"},g=null==t?void 0:t.data.title,p=null==t?void 0:t.data.result,b=null==t?void 0:t.data.label,C=null==t?void 0:t.data.level1,E=null==t?void 0:t.data.level2,y=null==t?void 0:t.data.level3;return(0,u.jsxs)("div",{className:c,style:x,children:[(0,u.jsxs)("div",{className:"flex flex-row items-center justify-between mb-12",children:[(0,u.jsx)("div",{className:"font-bold text-xs",children:(0,u.jsx)(j,{content:g})}),(0,u.jsx)("div",{className:"font-normal text-xs",children:(0,u.jsx)(j,{content:p})})]}),(0,u.jsx)("div",{className:"block w-full pb-3",children:(0,u.jsxs)("div",{className:"relative h-2.5 rounded-md bg-gradient-to-r",style:f,children:[(0,u.jsx)(N,{start:0,end:null==t?void 0:t.data.score,duration:5e3,onUpdate:o,hidden:!0}),(0,u.jsx)("div",{className:"relative",style:{width:"".concat(n,"%")},children:(0,u.jsxs)("div",{className:"absolute right-0 top-1.5 h-6 w-6 -translate-y-1/2 translate-x-1/2",children:[(0,u.jsxs)("div",{className:"inline-flex rounded-md px-[8px] pb-1.5 pt-1.5",style:v,children:[(0,u.jsx)("div",{className:"rounded-xs whitespace-nowrap text-xs font-normal leading-3",children:(0,u.jsx)(j,{content:b})}),(0,u.jsx)("span",{className:"-z-1 absolute left-1/2 top-full -translate-x-1/2 -translate-y-1/2 rotate-45 border-[5px] border-solid",style:m})]}),(0,u.jsx)("div",{className:"absolute top-0 box-border flex h-6 w-6 items-center justify-center rounded-full border-[2px] border-solid",style:m,children:(0,u.jsx)("span",{className:"h-3 w-3 rounded-full",style:h})})]})})]})}),(0,u.jsxs)("div",{className:"flex items-center justify-between text-xs font-bold",children:[(0,u.jsx)("div",{children:(0,u.jsx)(j,{content:C})}),(0,u.jsx)("div",{children:(0,u.jsx)(j,{content:E})}),(0,u.jsx)("div",{children:(0,u.jsx)(j,{content:y})})]})]})},list:function(e){let{content:t}=e,l=(null==t?void 0:t.data.animation)!=="none"?null==t?void 0:t.data.animation:void 0,n=l?"".concat(ei," ").concat(l):ei;return(0,u.jsx)("div",{className:n,children:null==t?void 0:t.data.content.map(e=>!e.deleted&&(0,u.jsx)(eo,{content:t,option:e},e.id))})},transform:function(e){let{content:t}=e,[l,o]=(0,a.useState)(0),[i,d]=(0,a.useState)(0),{theme:s}=(0,D.d)(),c=r(s),x=null==t?void 0:t.data.colors,f=null==t?void 0:t.data.bImage,v="object"==typeof f&&null!==f,m=v?f.uuid:f,h=v&&f.width||300,g=v&&f.height||300,p=X(m),b=null==t?void 0:t.data.aImage,C="object"==typeof b&&null!==b,E=C?b.uuid:b,y=C&&b.width||300,k=C&&b.height||300,F=X(E),B={backgroundImage:(null==s?void 0:s.dark)?"url(/assets/transform_dark.webp)":"url(/assets/transform.webp)",backgroundSize:"cover",backgroundPosition:"center"},A={backgroundColor:(null==x?void 0:x.barBackground)||c.border},S={width:"".concat(l,"%"),backgroundColor:"#111111",backgroundImage:"linear-gradient(to right, ".concat((null==x?void 0:x.bBar)||"#FFFFFF80",", ").concat((null==x?void 0:x.bBar)||"#FFFFFF99",")")},I={backgroundColor:(null==x?void 0:x.barBackground)||c.background,borderColor:(null==x?void 0:x.bBar)||"#888888"},z={backgroundColor:(null==x?void 0:x.bBar)||"#888888"},q={width:"".concat(i,"%"),backgroundColor:"#111111",backgroundImage:"linear-gradient(to right, ".concat((null==x?void 0:x.aBar)||"".concat(c.focus,"B3"),", ").concat((null==x?void 0:x.aBar)||"".concat(c.focus,"E6"),")")},T={backgroundColor:(null==x?void 0:x.barBackground)||c.background,borderColor:(null==x?void 0:x.aBar)||c.focus},P={backgroundColor:(null==x?void 0:x.aBar)||c.focus},L={backgroundImage:"linear-gradient(to right, ".concat((null==x?void 0:x.bBackground)||c.border,",\n ").concat((null==x?void 0:x.bBackground)||c.border,")"),backgroundColor:c.border,color:null==x?void 0:x.noteText},_={backgroundImage:"linear-gradient(to right, ".concat((null==x?void 0:x.aBackground)||"".concat(c.focus,"1A"),",\n ").concat((null==x?void 0:x.aBackground)||"".concat(c.focus,"1A"),")"),backgroundColor:c.border,color:null==x?void 0:x.noteText},M=null==t?void 0:t.data.bTitle,R=null==t?void 0:t.data.aTitle,U=null==t?void 0:t.data.bSubtitle,Z=null==t?void 0:t.data.aSubtitle,O=null==t?void 0:t.data.bDescription,V=null==t?void 0:t.data.aDescription,W=null==t?void 0:t.data.bIcon,G=null==t?void 0:t.data.aIcon;return(0,u.jsx)(w,{content:t,children:(0,u.jsxs)("div",{className:"grid grid-cols-2 border-inherit",children:[(0,u.jsx)("div",{className:"flex flex-col items-center justify-center rounded-tl-xl border-r border-inherit p-4",children:(0,u.jsx)("div",{className:"text-sm font-bold leading-4",children:(0,u.jsx)(j,{content:M})})}),(0,u.jsx)("div",{className:"flex flex-col items-center justify-center rounded-tr-xl p-4",children:(0,u.jsx)("div",{className:"text-sm font-bold leading-4",children:(0,u.jsx)(j,{content:R})})}),(0,u.jsxs)("div",{className:"col-span-2 grid grid-cols-2 items-end justify-center px-2 pt-4",style:B,children:[(0,u.jsx)("div",{className:"flex justify-center px-2",children:(0,u.jsx)(n.default,{src:p,alt:M,width:h,height:g,className:"h-auto w-full",priority:!0})}),(0,u.jsx)("div",{className:"flex justify-center px-2",children:(0,u.jsx)(n.default,{src:F,alt:R,width:y,height:k,className:"h-auto w-full",priority:!0})})]}),(0,u.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 border-r border-inherit p-4",children:[(0,u.jsx)("div",{className:"flex justify-center text-center",children:(0,u.jsx)("div",{className:"text-xs font-semibold",children:(0,u.jsx)(j,{content:U})})}),(0,u.jsx)("div",{className:"flex w-full justify-center",children:(0,u.jsx)("div",{className:"block h-3 w-full rounded-md p-0.5",style:A,children:(0,u.jsx)("div",{className:"relative block h-full rounded",style:S,children:(0,u.jsxs)("div",{className:"absolute -right-3 -top-2 box-border flex h-6 w-6 items-center justify-center rounded-full border-2",style:I,children:[(0,u.jsx)("span",{className:"h-3.5 w-3.5 rounded-full",style:z}),(0,u.jsx)(N,{start:0,end:null==t?void 0:t.data.bLevel,duration:5e3,onUpdate:o,hidden:!0})]})})})})]}),(0,u.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 p-4",children:[(0,u.jsx)("div",{className:"flex justify-center text-center",children:(0,u.jsx)("div",{className:"text-xs font-semibold",children:(0,u.jsx)(j,{content:Z})})}),(0,u.jsx)("div",{className:"flex w-full justify-center",children:(0,u.jsx)("div",{className:"block h-3 w-full rounded-md p-0.5",style:A,children:(0,u.jsx)("div",{className:"relative block h-full rounded",style:q,children:(0,u.jsxs)("div",{className:"absolute -right-3 -top-2 box-border flex h-6 w-6 items-center justify-center rounded-full border-2",style:T,children:[(0,u.jsx)("span",{className:"h-3.5 w-3.5 rounded-full",style:P}),(0,u.jsx)(N,{start:0,end:null==t?void 0:t.data.aLevel,duration:5e3,onUpdate:d,hidden:!0})]})})})})]}),(0,u.jsx)("div",{className:"flex flex-col rounded-bl-2xl border-r border-inherit p-3",children:(0,u.jsxs)("div",{className:"flex gap-1.5 rounded-lg p-3",style:L,children:[(0,u.jsx)(H,{className:"flex-none size-3.5",svgContent:W}),(0,u.jsx)("div",{className:"flex-auto whitespace-pre-line prose text-[10px] font-normal leading-4",children:(0,u.jsx)(j,{content:O})})]})}),(0,u.jsx)("div",{className:"flex flex-col rounded-br-2xl p-3",children:(0,u.jsxs)("div",{className:"flex gap-1.5 rounded-lg p-3",style:_,children:[(0,u.jsx)(H,{className:"flex-none size-3.5",svgContent:G}),(0,u.jsx)("div",{className:"flex-auto whitespace-pre-line prose text-[10px] font-normal leading-4",children:(0,u.jsx)(j,{content:V})})]})})]})})},testimony:function(e){var t;let{content:l}=e,a=null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.colors,o=J[null==l?void 0:l.data.alignment],i=null==l?void 0:l.data.image,d=Y("object"==typeof i&&null!==i?i.uuid:i),s={color:(null==a?void 0:a.focus)||"#facc15"},r=null==l?void 0:l.data.name,c=null==l?void 0:l.data.place,D=null==l?void 0:l.data.text;return(0,u.jsx)(w,{content:l,children:(0,u.jsxs)("div",{className:o,children:[(0,u.jsx)("div",{className:"flex items-center gap-2",children:(0,u.jsxs)("div",{className:"flex items-center gap-2",children:[(0,u.jsx)(n.default,{className:"size-9 rounded-full",src:d,alt:null==l?void 0:l.data.name,width:50,height:50,loading:"lazy"}),(0,u.jsxs)("div",{className:"flex flex-col text-left",children:[(0,u.jsx)("div",{className:"text-base font-bold",children:(0,u.jsx)(j,{content:r})}),(0,u.jsx)("div",{className:"text-xs",children:(0,u.jsx)(j,{content:c})})]})]})}),(0,u.jsx)("div",{className:"flex items-center gap-2",children:(0,u.jsx)("div",{className:"flex-auto whitespace-pre-line text-sm prose",children:(0,u.jsx)(j,{content:D})})}),(0,u.jsx)("div",{className:"flex justify-start items-stretch gap-1",children:Array.from({length:null==l?void 0:l.data.rating}).map((e,t)=>(0,u.jsx)(G.kum,{className:"h-auto w-4 flex-none",style:s},Number(t)))})]})})},warranty:function(e){let{content:t}=e,l=null==t?void 0:t.data.alignment,n="".concat("flex flex-col gap-5 px-7 pt-7 pb-8"," ").concat(K[l]),a=null==t?void 0:t.data.icon,o=null==t?void 0:t.data.title,i=null==t?void 0:t.data.text;return(0,u.jsx)(w,{content:t,children:(0,u.jsxs)("div",{className:n,children:[(0,u.jsx)(H,{className:"w-11 h-auto",svgContent:a}),(0,u.jsx)("div",{className:"flex-auto text-base font-bold leading-none",children:(0,u.jsx)(j,{content:o})}),(0,u.jsx)("div",{className:"flex-auto whitespace-pre-line text-sm prose",children:(0,u.jsx)(j,{content:i})})]})})},benefits:function(e){let{content:t}=e,l=(null==t?void 0:t.data.title)||"";return(0,u.jsx)(w,{content:t,children:(0,u.jsxs)("div",{className:"flex flex-auto flex-col gap-6 px-6 py-8",children:[(0,u.jsx)("span",{className:"text-base font-bold text-center leading-4",children:(0,u.jsx)(j,{content:l})}),null==t?void 0:t.data.content.map(e=>!e.deleted&&(0,u.jsx)(Q,{option:e,content:t},e.id))]})})},pricing:function(e){var t;let{content:l}=e,{theme:n}=(0,D.d)(),a=r(n),o=null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.colors,i=null==l?void 0:l.data.title,d=null==l?void 0:l.data.subtitle,s=null==l?void 0:l.data.label,c=null==l?void 0:l.data.pricing,x={color:(null==o?void 0:o.focusBorder)||a.focus},f={backgroundImage:(null==o?void 0:o.focus)?o.focus:"linear-gradient(to right, ".concat(a.focus,"1A, ").concat(a.focus,"1A)"),backgroundColor:(null==o?void 0:o.focus)?o.focus:a.background};return(0,u.jsx)(w,{content:l,selected:!0,children:(0,u.jsxs)("div",{className:"flex flex-auto gap-3 p-2",children:[(0,u.jsx)("div",{className:"flex flex-none flex-col items-center justify-center pl-2",style:x,children:(0,u.jsx)(H,{className:"w-8 h-auto",svgContent:null==l?void 0:l.data.icon})}),(0,u.jsxs)("div",{className:"flex flex-auto flex-col items-start justify-center gap-1.5",children:[(0,u.jsx)("div",{className:"text-sm font-bold leading-none line-clamp-1 max-w-max",children:(0,u.jsx)(j,{content:i})}),(0,u.jsx)("div",{className:"text-xs font-normal",children:(0,u.jsx)(j,{content:d})})]}),(0,u.jsxs)("div",{className:"flex flex-none flex-col max-w-32 items-center justify-center gap-0.5 rounded-lg px-3 py-1.5",style:f,children:[(0,u.jsx)("div",{className:"text-[10px] font-normal line-clamp-1",children:(0,u.jsx)(j,{content:s})}),(0,u.jsx)("div",{className:"text-2xl font-bold leading-none tracking-tight line-clamp-1",children:(0,u.jsx)(j,{content:c})})]})]})})},email:function(e){let{content:t}=e,{theme:l}=(0,D.d)(),n=T(),{settings:o}=(0,D.d)(),[i,d]=(0,a.useState)(""),s=(null==t?void 0:t.data.buttonTitle)||"",r=(null==o?void 0:o.integrations)?null==o?void 0:o.integrations.find(e=>"active"===e.type):null,c=async e=>{if(e.preventDefault(),r){n(null==t?void 0:t.id);try{let e=await $.Z.post("/api/active",{url:null==r?void 0:r.url,key:null==r?void 0:r.key,list:null==t?void 0:t.data.activeList,email:i});console.log(e.data)}catch(e){console.error(e),n(null==t?void 0:t.id)}}else n(null==t?void 0:t.id)};return(0,u.jsxs)("form",{onSubmit:c,className:"flex flex-auto flex-col gap-3\n ".concat((null==t?void 0:t.data.animation)!=="none"&&(null==t?void 0:t.data.animation)),children:[(0,u.jsxs)("div",{className:"block w-full relative",children:[(0,u.jsx)("div",{className:"flex items-center absolute inset-y-0 left-0 pl-4",children:(0,u.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:[(0,u.jsx)("path",{d:"M3 4a2 2 0 00-2 2v1.161l8.441 4.221a1.25 1.25 0 001.118 0L19 7.162V6a2 2 0 00-2-2H3z"}),(0,u.jsx)("path",{d:"M19 8.839l-7.77 3.885a2.75 2.75 0 01-2.46 0L1 8.839V14a2 2 0 002 2h14a2 2 0 002-2V8.839z"})]})}),(0,u.jsx)("input",{id:"email",type:"email",name:"email",value:i,onChange:e=>d(e.target.value),placeholder:null==t?void 0:t.data.placeholder,required:!0,className:"block w-full rounded-xl border-none pl-12 p-5 shadow-lg focus:ring-2 focus:ring-inset focus:ring-sky-600\n ".concat((null==l?void 0:l.dark)?"bg-gray-800 placeholder:text-gray-400 text-gray-100":"bg-gray-50 placeholder:text-gray-500 text-gray-900")})]}),(0,u.jsx)("div",{className:"flex flex-auto\n ".concat((null==t?void 0:t.data.buttonAbsolute)&&"absolute bottom-0 left-0 w-full items-center px-3 py-4","\n ").concat((null==t?void 0:t.data.buttonAnimation)!=="none"&&(null==t?void 0:t.data.buttonAnimation)),children:(0,u.jsx)(L,{type:"submit",content:t,children:(0,u.jsx)(j,{content:s})})})]})},form:function(e){var t;let{content:l}=e,n=T(),a=null==l?void 0:l.id,o=(null==l?void 0:l.data.animation)!=="none"?null==l?void 0:l.data.animation:void 0,i=o?"".concat(el," ").concat(o):el,d=(null==l?void 0:l.data.buttonTitle)||"";return(0,u.jsxs)("form",{onSubmit:e=>{e.preventDefault(),n(a)},className:i,children:[null==l?void 0:null===(t=l.data.content)||void 0===t?void 0:t.map(e=>!e.deleted&&(0,u.jsx)(et,{option:e},e.id)),(0,u.jsx)("div",{className:"flex flex-auto mt-2",children:(0,u.jsx)(L,{type:"submit",content:l,children:(0,u.jsx)(j,{content:d})})})]})},script:function(e){var t;let{content:l}=e,n=null==l?void 0:l.data.visible,{htmlWithoutScripts:a,scripts:o,externalScripts:i}=ej((null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.script)||"");return(0,u.jsxs)("div",{className:n?"flex flex-auto max-w-full justify-center text-center":"hidden",children:[(0,u.jsx)("div",{className:"w-full max-w-full overflow-hidden",dangerouslySetInnerHTML:{__html:a}}),i.map((e,t)=>(0,u.jsx)(R.default,{src:e,strategy:"lazyOnload"},t)),o.map((e,t)=>(0,u.jsx)(R.default,{id:"ScriptContent",strategy:"lazyOnload",children:e},t+i.length))]})},audio:function(e){var t,l,a;let{content:o}=e,i=(null==o?void 0:o.data.name)||"audio",d=(null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.showName)||!1,s=(null==o?void 0:null===(a=o.data)||void 0===a?void 0:null===(l=a.image)||void 0===l?void 0:l.uuid)||void 0,r=eN(s),c=null==o?void 0:o.data.audio.uuid,D=null==o?void 0:o.data.audio.waves,x=null==o?void 0:o.data.autoplay,f=ew(c);return(0,u.jsxs)(w,{content:o,className:"!flex-col !gap-1.5 !rounded-2xl px-5 py-4",children:[d&&(0,u.jsx)("span",{className:"text-xs line-clamp-1",children:(0,u.jsx)(j,{content:i})}),(0,u.jsxs)("div",{className:"flex flex-auto gap-4",children:[(0,u.jsx)(ey,{audioSrc:f,autoplay:x,audioWaves:D}),s?(0,u.jsx)(n.default,{className:"size-12 rounded-full shadow shadow-black/20",src:r,alt:i,width:50,height:50,unoptimized:!0}):void 0]})]})},carousel:function(e){let{content:t}=e,{theme:l}=(0,D.d)(),n=null==l?void 0:l.dark,[o,i]=(0,a.useState)(0),d=null==t?void 0:t.data.content.filter(e=>!e.deleted),s=o===d.length-1,r=0===o,c=(0,a.useRef)(null),x=n?eS.dark:eS.light;return(0,u.jsxs)("div",{className:"flex flex-col gap-3 flex-auto",children:[(0,u.jsxs)(w,{content:t,className:"items-center relative !bg-transparent !border-none !pointer-events-auto",children:[!r&&(0,u.jsxs)("button",{type:"button",onClick:()=>{let e=c.current;if(!e)return;let t=e.clientWidth;e.scrollBy({left:-t,behavior:"smooth"})},className:"select-none cursor-pointer absolute left-0 z-10 text-white hover:opacity-70",style:{animation:"arrowLeft 2s ease-in-out infinite"},children:[(0,u.jsx)(eB.Z,{size:30}),(0,u.jsx)("span",{className:"hidden",children:"Previous"})]}),(0,u.jsx)("div",{ref:c,className:"flex flex-auto cursor-pointer overflow-x-auto snap-x snap-mandatory scroll-smooth carousel",onScroll:()=>{let e=c.current;e&&i(Math.round(e.scrollLeft/e.clientWidth))},style:{animation:r?"bounce 1s ease-out":void 0,animationDelay:r?"1s":void 0},children:null==d?void 0:d.map(e=>(0,u.jsx)(eF,{option:e,content:t},e.id))}),!s&&(0,u.jsxs)("button",{type:"button",onClick:()=>{let e=c.current;if(!e)return;let t=e.clientWidth;e.scrollBy({left:t,behavior:"smooth"})},className:"select-none cursor-pointer absolute right-0 z-10 text-white hover:opacity-60",style:{animation:"arrowRight 2s ease-in-out infinite"},children:[(0,u.jsx)(eA.Z,{size:30}),(0,u.jsx)("span",{className:"hidden",children:"Next"})]})]}),(0,u.jsx)("div",{className:"flex justify-center gap-1.5",children:null==d?void 0:d.map((e,t)=>(0,u.jsx)("div",{className:x,style:{opacity:o===t?"100%":"30%"}},e.id))})]})}};let ez={true:"flex flex-auto min-h-screen justify-center items-start box-border text-gray-50 bg-gray-950 px-5 py-7",false:"flex flex-auto min-h-screen justify-center items-start box-border text-gray-950 bg-white px-5 py-7"},eq={true:"flex flex-auto flex-col max-w-lg min-w-80 gap-7 mb-28",false:"flex flex-auto flex-col max-w-lg min-w-80 gap-7"};function eT(e){let{page:t}=e,{pageContent:l,setPageContent:n,nodes:o,edges:i,theme:d,xTracking:s}=(0,D.d)(),{pageVisit:r,token:x,setHistory:f}=(0,c.k)();(0,a.useEffect)(()=>{let e;if(t)e=null==o?void 0:o.find(e=>e.data.slug===t&&"page"===e.type);else{let t=null==i?void 0:i.find(e=>"root"===e.source);t&&(e=null==o?void 0:o.find(e=>e.id===t.target&&"page"===e.type))}n(e)},[n,t]),(0,a.useEffect)(()=>{x&&l&&s&&(r(l.id),f(e=>e.some(e=>e.page===l.id)?e:[...e,{page:l.id}]))},[x,l,s,r]),(0,a.useEffect)(()=>{l&&window.scrollTo({top:0,behavior:"instant"})},[l]);let v=(null==d?void 0:d.dark)?ez.true:ez.false,m=(null==l?void 0:l.data.content.some(e=>!0===e.data.fixed))?eq.true:eq.false;return(0,a.useMemo)(()=>l&&(0,u.jsx)("div",{className:v,children:(0,u.jsx)("main",{className:m,children:null==l?void 0:l.data.content.map(e=>{let t=eI[e.type];return t&&(0,u.jsx)(t,{content:e,pageId:null==l?void 0:l.id},e.id)})})}),[l,d])}},5632:function(e,t,l){l.d(t,{ProjectProvider:function(){return o},d:function(){return i}});var u=l(7437),n=l(2265);let a=(0,n.createContext)(void 0);function o(e){let{projectData:t,children:l}=e,o=null==t?void 0:t.nodes,i=null==t?void 0:t.edges,d=null==t?void 0:t.theme,s=null==t?void 0:t.settings,r=null==t?void 0:t.variables,c=null==s?void 0:s.tracking,D=null==s?void 0:s.integrations,[x,f]=(0,n.useState)(),v=(0,n.useMemo)(()=>({pageContent:x,setPageContent:f,nodes:o,edges:i,theme:d,settings:s,variables:r,xTracking:c,integrations:D,info:{name:null==t?void 0:t.name,url:null==t?void 0:t.url,status:null==t?void 0:t.status,blocked:null==t?void 0:t.blocked}}),[x,o,i,d,s,r,c,D,null==t?void 0:t.name,null==t?void 0:t.url,null==t?void 0:t.status,null==t?void 0:t.blocked]);return(0,u.jsx)(a.Provider,{value:v,children:l})}let i=()=>{let e=(0,n.useContext)(a);if(void 0===e)throw Error("useProjectContext must be used within a ProjectProvider");return e}},761:function(e,t,l){l.d(t,{SessionProvider:function(){return i},k:function(){return d}});var u=l(7437);let n=l(3464).Z.create({baseURL:"https://api-tracking.xquiz.co"});n.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var a=l(2265);let o=(0,a.createContext)(void 0);function i(e){let{projectURL:t,children:l}=e,[i,d]=(0,a.useState)(null),[s,r]=(0,a.useState)([]),[c,D]=(0,a.useState)([]),[x,f]=(0,a.useState)([]),[v,m]=(0,a.useState)(0),h=(0,a.useCallback)(async()=>{try{let e=(await n.post("/api/guests/".concat(t))).data.data.token;d(e)}catch(e){}},[t]);(0,a.useEffect)(()=>{t&&h()},[h,t]);let g=(0,a.useCallback)(async()=>{if(i)try{await n.put("/api/guests/".concat(i),{payload:s,variables:c})}catch(e){}},[i,s,c]),p=(0,a.useCallback)(async e=>{if(i)try{await n.post("/api/guests/".concat(i,"/views"),{page_id:e})}catch(e){}else await h()},[h,i]),j=(0,a.useMemo)(()=>({token:i,payload:s,variables:c,history:x,progress:v,setProgress:m,setHistory:f,setPayload:r,setVariables:D,pageVisit:p,updateSession:g}),[i,s,c,x,v,p,g]);return(0,u.jsx)(o.Provider,{value:j,children:l})}let d=()=>{let e=(0,a.useContext)(o);if(void 0===e)throw Error("useSession must be used within a SessionProvider");return e}}}]);